package top.hisoft.pattern.creational.abstractfactory.farm.fruits;

import top.hisoft.pattern.creational.abstractfactory.farm.Fruit;

/**
 * 热带水果.
 *
 * @author sky
 * @since 2025-05-31
 */
public class TropicalFruit implements Fruit {

    /**
     * 水果名字
     */
    private String name;

    public TropicalFruit(String name) {
        System.out.println("Tropical fruit :" + name);
        this.name = name;
    }

    @Override
    public String getName() {
        return name;
    }
}
